package com.shop.api.params;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
public class CreateProductAttributeParam implements Serializable {

    @NotEmpty(message = "颜色不能为空")
    private String color;

    @NotEmpty(message = "规格不能为空")
    private String kit;

    @NotEmpty(message = "单价不能为空")
    private Double unitPrice;

    @NotEmpty(message = "存货不能为空")
    private int stock;

    @NotEmpty(message = "产品ID不能为空")
    private Long productId;

    @NotEmpty(message = "图片路径不能为空")
    private String imgPath;
}
